//
//  TopicCell.m
//  Lianxi2
//
//  Created by lanou on 16/7/4.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "TopicCell.h"
@interface TopicCell()
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIImageView *photo;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *countNumber;



@end

@implementation TopicCell
- (void)setCellWithModel:(id)model{
    
    TopicModel *mode = model;
    self.title.text = mode.title;
    [self.photo sd_setImageWithURL:[NSURL URLWithString:mode.coverimg] placeholderImage:[UIImage imageNamed:@"3"]];
    self.content.text = mode.content;
    self.time.text = mode.addtime_f;
    self.countNumber.text = [NSString stringWithFormat:@"%ld",mode.comment];
}

@end
